package com.zzx.demo.controll;

import java.net.URL;

import org.codehaus.xfire.client.Client;

public class TestMain {

	public static void main(String[] args) {
		System.err.println("**main**开始*******");
		try {
			Client client = new Client(new URL("http://localhost:8081/test-demo/demoService?wsdl"));
			Object[] res = client.invoke("rtnTest", new Object[]{"busi传值"});
			//invoke方法有两个参数，一个是接口的方法名，一个是接口方法的参数列表
			String re = (String) res[0];
			System.out.println(re);
		} catch (Exception e) {
			e.printStackTrace();
		}
		System.err.println("**main**结束*******");

	}

}
